
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>3.1 官方案例:监控端口数据 · 大数据 Fulume 课堂笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content=" 李振超">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-page-toc-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism-base16-ateliersulphurpool.light.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-change_girls/girls.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/website.css">
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="32-shi-shi-du-qu-ben-di-wen-jian-dao-hdfs-an-li.html" />
    
    
    <link rel="prev" href="../di-3-zhang-qi-ye-kai-fa-an-li.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://www.atguigu.com/" target="_blank" class="custom-link">联系我们</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    第 1 章 概述
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="../11-flume-de-zuo-yong.html">
            
                <a href="../11-flume-de-zuo-yong.html">
            
                    
                    1.1 Flume 是什么
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="../12-flume-zu-cheng-jia-gou.html">
            
                <a href="../12-flume-zu-cheng-jia-gou.html">
            
                    
                    1.2 Flume 组成架构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="../13-flume-tuo-pu-jia-gou.html">
            
                <a href="../13-flume-tuo-pu-jia-gou.html">
            
                    
                    1.3 Flume 拓扑架构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.4" data-path="../14-flume-nei-bu-yuan-li.html">
            
                <a href="../14-flume-nei-bu-yuan-li.html">
            
                    
                    1.4 Flume 内部原理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../chapter1.html">
            
                <a href="../chapter1.html">
            
                    
                    第 2 章 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../di-3-zhang-qi-ye-kai-fa-an-li.html">
            
                <a href="../di-3-zhang-qi-ye-kai-fa-an-li.html">
            
                    
                    第 3 章 企业开发案例
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.3.1" data-path="31-guan-fang-an-4f8b3a-jian-kong-duan-kou-shu-ju.html">
            
                <a href="31-guan-fang-an-4f8b3a-jian-kong-duan-kou-shu-ju.html">
            
                    
                    3.1 官方案例:监控端口数据
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="32-shi-shi-du-qu-ben-di-wen-jian-dao-hdfs-an-li.html">
            
                <a href="32-shi-shi-du-qu-ben-di-wen-jian-dao-hdfs-an-li.html">
            
                    
                    3.2 实时读取本地文件到HDFS案例
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="33-shi-shi-du-qu-mu-lu-wen-jian-dao-hdfs.html">
            
                <a href="33-shi-shi-du-qu-mu-lu-wen-jian-dao-hdfs.html">
            
                    
                    3.3 实时读取目录文件到 HDFS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="34-dan-shu-ju-yuan-duo-chu-kou-an-li.html">
            
                <a href="34-dan-shu-ju-yuan-duo-chu-kou-an-li.html">
            
                    
                    3.4 单数据源多出口案例(选择器)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="35-dan-shu-ju-yuan-duo-chu-kou-an-4f8b28-sink-7ec429.html">
            
                <a href="35-dan-shu-ju-yuan-duo-chu-kou-an-4f8b28-sink-7ec429.html">
            
                    
                    3.5 单数据源多出口案例(Sink组)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="36-duo-shu-ju-yuan-hui-zong-an-li.html">
            
                <a href="36-duo-shu-ju-yuan-hui-zong-an-li.html">
            
                    
                    3.6 多数据源汇总案例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../di-4-zhang-flume-jian-kong-zhi-ganglia.html">
            
                <a href="../di-4-zhang-flume-jian-kong-zhi-ganglia.html">
            
                    
                    第 4 章 Flume 监控之 Ganglia
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../di-4-zhang-flume-jian-kong-zhi-ganglia/41-ganglia-de-an-zhuang-he-bu-shu.html">
            
                <a href="../di-4-zhang-flume-jian-kong-zhi-ganglia/41-ganglia-de-an-zhuang-he-bu-shu.html">
            
                    
                    4.1 Ganglia 的安装和部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../di-4-zhang-flume-jian-kong-zhi-ganglia/42-cao-zuo-flume-ce-shi-jian-kong.html">
            
                <a href="../di-4-zhang-flume-jian-kong-zhi-ganglia/42-cao-zuo-flume-ce-shi-jian-kong.html">
            
                    
                    4.2 操作 Flume 测试监控
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../di-5-zhang-zi-ding-yi-source.html">
            
                <a href="../di-5-zhang-zi-ding-yi-source.html">
            
                    
                    第 5 章 自定义 source
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../di-5-zhang-zi-ding-yi-source/51-xu-qiu.html">
            
                <a href="../di-5-zhang-zi-ding-yi-source/51-xu-qiu.html">
            
                    
                    5.1 需求
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../di-5-zhang-zi-ding-yi-source/52-fen-xi.html">
            
                <a href="../di-5-zhang-zi-ding-yi-source/52-fen-xi.html">
            
                    
                    5.2 分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../di-5-zhang-zi-ding-yi-source/53-bian-ma.html">
            
                <a href="../di-5-zhang-zi-ding-yi-source/53-bian-ma.html">
            
                    
                    5.3 编码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../di-5-zhang-zi-ding-yi-source/54-ce-shi.html">
            
                <a href="../di-5-zhang-zi-ding-yi-source/54-ce-shi.html">
            
                    
                    5.4 测试
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../di-5-zhang-qi-ye-zhen-shi-mian-shi-ti.html">
            
                <a href="../di-5-zhang-qi-ye-zhen-shi-mian-shi-ti.html">
            
                    
                    第 6 章 企业真实面试题
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >3.1 官方案例:监控端口数据</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="31-&#x5B98;&#x65B9;&#x6848;&#x4F8B;&#x76D1;&#x63A7;&#x7AEF;&#x53E3;&#x6570;&#x636E;">3.1 &#x5B98;&#x65B9;&#x6848;&#x4F8B;:&#x76D1;&#x63A7;&#x7AEF;&#x53E3;&#x6570;&#x636E;</h1>
<p>&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x5355;&#x8282;&#x70B9;&#x7684;&#x6848;&#x4F8B;</p>
<h2 id="311-&#x6848;&#x4F8B;&#x9700;&#x6C42;">3.1.1 &#x6848;&#x4F8B;&#x9700;&#x6C42;</h2>
<p>&#x9996;&#x5148;&#xFF0C;Flume &#x76D1;&#x63A7;&#x672C;&#x673A; 44444 &#x7AEF;&#x53E3;&#xFF0C;&#x7136;&#x540E;&#x901A;&#x8FC7; telnet &#x5DE5;&#x5177;&#x5411;&#x672C;&#x673A; 44444 &#x7AEF;&#x53E3;&#x53D1;&#x9001;&#x6D88;&#x606F;&#xFF0C;&#x6700;&#x540E; Flume &#x5C06;&#x76D1;&#x542C;&#x7684;&#x6570;&#x636E;&#x5B9E;&#x65F6;&#x663E;&#x793A;&#x5728;&#x63A7;&#x5236;&#x53F0;&#x3002;</p>
<p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1541489967.png-atguiguText" alt=""></p>
<h2 id="312-&#x64CD;&#x4F5C;&#x6B65;&#x9AA4;">3.1.2 &#x64CD;&#x4F5C;&#x6B65;&#x9AA4;</h2>
<h3 id="&#x6B65;&#x9AA4;1-&#x5B89;&#x88C5;-telnet-&#x5DE5;&#x5177;">&#x6B65;&#x9AA4;1: &#x5B89;&#x88C5; telnet &#x5DE5;&#x5177;</h3>
<p>&#x5C06; rpm &#x8F6F;&#x4EF6;&#x5305;(xinetd-2.3.14-40.el6.x86_64.rpm&#x3001;telnet-0.17-48.el6.x86_64.rpm&#x548C;telnet-server-0.17-48.el6.x86_64.rpm)&#x62F7;&#x5165; /opt/software &#x6587;&#x4EF6;&#x5939;&#x4E0B;&#x9762;&#x3002;
&#x6267;&#x884C;RPM&#x8F6F;&#x4EF6;&#x5305;&#x5B89;&#x88C5;&#x547D;&#x4EE4;&#xFF1A;</p>
<pre class="language-"><code class="lang-bash"><span class="token function">sudo</span> rpm -ivh xinetd-2.3.14-40.el6.x86_64.rpm
<span class="token function">sudo</span> rpm -ivh telnet-0.17-48.el6.x86_64.rpm
<span class="token function">sudo</span> rpm -ivh telnet-server-0.17-48.el6.x86_64.rpm
</code></pre>
<h3 id="&#x6B65;&#x9AA4;2-&#x5224;&#x65AD;-444-&#x7AEF;&#x53E3;&#x662F;&#x5426;&#x88AB;&#x5360;&#x7528;">&#x6B65;&#x9AA4;2: &#x5224;&#x65AD; 444 &#x7AEF;&#x53E3;&#x662F;&#x5426;&#x88AB;&#x5360;&#x7528;</h3>
<pre class="language-"><code class="lang-bash"><span class="token function">sudo</span> <span class="token function">netstat</span> -tunlp <span class="token operator">|</span> <span class="token function">grep</span> 44444
</code></pre>
<p>&#x529F;&#x80FD;&#x63CF;&#x8FF0;&#xFF1A;netstat &#x547D;&#x4EE4;&#x662F;&#x4E00;&#x4E2A;&#x76D1;&#x63A7; TCP/IP &#x7F51;&#x7EDC;&#x7684;&#x975E;&#x5E38;&#x6709;&#x7528;&#x7684;&#x5DE5;&#x5177;&#xFF0C;&#x5B83;&#x53EF;&#x4EE5;&#x663E;&#x793A;&#x8DEF;&#x7531;&#x8868;&#x3001;&#x5B9E;&#x9645;&#x7684;&#x7F51;&#x7EDC;&#x8FDE;&#x63A5;&#x4EE5;&#x53CA;&#x6BCF;&#x4E00;&#x4E2A;&#x7F51;&#x7EDC;&#x63A5;&#x53E3;&#x8BBE;&#x5907;&#x7684;&#x72B6;&#x6001;&#x4FE1;&#x606F;&#x3002; 
&#x57FA;&#x672C;&#x8BED;&#x6CD5;&#xFF1A;netstat [&#x9009;&#x9879;]
&#x9009;&#x9879;&#x53C2;&#x6570;&#xFF1A;</p>
<pre class="language-"><code>-t&#x6216;--tcp&#xFF1A;&#x663E;&#x793A;TCP&#x4F20;&#x8F93;&#x534F;&#x8BAE;&#x7684;&#x8FDE;&#x7EBF;&#x72B6;&#x51B5;&#xFF1B; 
-u&#x6216;--udp&#xFF1A;&#x663E;&#x793A;UDP&#x4F20;&#x8F93;&#x534F;&#x8BAE;&#x7684;&#x8FDE;&#x7EBF;&#x72B6;&#x51B5;&#xFF1B;
-n&#x6216;--numeric&#xFF1A;&#x76F4;&#x63A5;&#x4F7F;&#x7528;ip&#x5730;&#x5740;&#xFF0C;&#x800C;&#x4E0D;&#x901A;&#x8FC7;&#x57DF;&#x540D;&#x670D;&#x52A1;&#x5668;&#xFF1B; 
-l&#x6216;--listening&#xFF1A;&#x663E;&#x793A;&#x76D1;&#x63A7;&#x4E2D;&#x7684;&#x670D;&#x52A1;&#x5668;&#x7684;Socket&#xFF1B; 
-p&#x6216;--programs&#xFF1A;&#x663E;&#x793A;&#x6B63;&#x5728;&#x4F7F;&#x7528;Socket&#x7684;&#x7A0B;&#x5E8F;&#x8BC6;&#x522B;&#x7801;&#x548C;&#x7A0B;&#x5E8F;&#x540D;&#x79F0;&#xFF1B;
</code></pre><h3 id="&#x6B65;&#x9AA4;3-&#x521B;&#x5EFA;-flume-agent-&#x914D;&#x7F6E;&#x6587;&#x4EF6;-flume-telnet-loggerconf">&#x6B65;&#x9AA4;3: &#x521B;&#x5EFA; Flume Agent &#x914D;&#x7F6E;&#x6587;&#x4EF6; flume-telnet-logger.conf</h3>
<p>&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x540D;, &#x548C;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x6240;&#x5728;&#x7684;&#x8DEF;&#x5F84;&#x90FD;&#x662F;&#x968F;&#x610F;&#x6CA1;&#x6709;&#x5F3A;&#x5236;&#x8981;&#x6C42;&#x7684;.<br>&#x4F46;&#x662F;&#x6700;&#x597D;&#x540D;&#x5B57;&#x5E94;&#x8BE5;&#x4F53;&#x73B0;&#x4E1A;&#x52A1;&#x9700;&#x6C42;, &#x653E;&#x7F6E;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x7684;&#x76EE;&#x5F55;&#x53EF;&#x4EE5;&#x653E;&#x5728; Flume &#x7684;&#x6839;&#x76EE;&#x5F55;&#x4E0B;.</p>
<pre class="language-"><code class="lang-bash"><span class="token function">cd</span> /opt/module/flume
<span class="token function">mkdir</span> job  <span class="token comment" spellcheck="true"># &#x521B;&#x5EFA; job &#x76EE;&#x5F55;</span>
<span class="token function">cd</span> job
<span class="token function">touch</span> flume-telnet-logger.conf  <span class="token comment" spellcheck="true"># &#x521B;&#x5EFA;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>
</code></pre>
<p>&#x5728;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x5185;&#x6DFB;&#x52A0;&#x5982;&#x4E0B;&#x5185;&#x5BB9;:</p>
<pre class="language-"><code># example.conf: A single-node Flume configuration

# Name the components on this agent  &#x7ED9;&#x8FD9;&#x4E2A; agent &#x7684;&#x7EC4;&#x4EF6;&#x547D;&#x540D;
# a1 &#x5C31;&#x662F;&#x8FD9;&#x4E2A; agent &#x7684;&#x540D;&#x5B57;
a1.sources = r1    
a1.sinks = k1  
a1.channels = c1

# Describe/configure the source
a1.sources.r1.type = netcat
a1.sources.r1.bind = localhost
a1.sources.r1.port = 44444

# Describe the sink
a1.sinks.k1.type = logger

# Use a channel which buffers events in memory
a1.channels.c1.type = memory
a1.channels.c1.capacity = 1000
a1.channels.c1.transactionCapacity = 100

# Bind the source and sink to the channel
a1.sources.r1.channels = c1
a1.sinks.k1.channel = c1
</code></pre><p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1541491883.png-atguiguText" alt=""></p>
<h3 id="&#x6B65;&#x9AA4;4-&#x5F00;&#x542F;-flume-&#x5F00;&#x59CB;&#x76D1;&#x542C;-44444-&#x7AEF;&#x53E3;">&#x6B65;&#x9AA4;4: &#x5F00;&#x542F; Flume, &#x5F00;&#x59CB;&#x76D1;&#x542C; 44444 &#x7AEF;&#x53E3;</h3>
<pre class="language-"><code class="lang-bash">bin/flume-ng agent --conf conf/ --conf-file job/flume-telnet-logger.conf --name a1 -Dflume.root.logger<span class="token operator">=</span>INFO,console
</code></pre>
<blockquote>
<h4 id="&#x8BF4;&#x660E;"><em>&#x8BF4;&#x660E;:</em></h4>
</blockquote>
<ul>
<li><code>--conf conf/</code> &#x8868;&#x793A;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x6240;&#x5728;&#x7684;&#x76EE;&#x5F55;(<code>-c conf/</code>)</li>
<li><code>--conf-file job/flume-telnet-logger.conf</code> &#x8868;&#x793A;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x7684;&#x6587;&#x4EF6;&#x540D;(<code>-f job/flume-telnet-logger.conf</code>)</li>
<li><code>--name a1</code> &#x8868;&#x793A; agent &#x7684;&#x540D;&#x5B57;(<code>-n a1</code>)</li>
<li><code>-Dflume.root.logger=INFO,console</code> &#x8868;&#x793A; flume &#x8FD0;&#x884C;&#x65F6;&#x52A8;&#x6001;&#x4FEE;&#x6539;<code>flume.root.logger</code>&#x53C2;&#x6570;&#x5C5E;&#x6027;&#x503C;&#xFF0C;&#x5E76;&#x5C06;&#x63A7;&#x5236;&#x53F0;&#x65E5;&#x5FD7;&#x6253;&#x5370;&#x7EA7;&#x522B;&#x8BBE;&#x7F6E;&#x4E3A;<code>INFO</code>&#x7EA7;&#x522B;&#x3002;&#x65E5;&#x5FD7;&#x7EA7;&#x522B;&#x5305;&#x62EC;:<code>log&#x3001;info&#x3001;warn&#x3001;error</code>&#x3002; &#x6CE8;&#x610F;: <code>INFO,console</code>&#x4E2D;&#x7684;&#x9017;&#x53F7;&#x540E;&#x9762;&#x4E0D;&#x80FD;&#x6DFB;&#x52A0;&#x7A7A;&#x683C;.</li>
</ul>
<h3 id="&#x6B65;&#x9AA4;5-&#x4F7F;&#x7528;-telnet-&#x5DE5;&#x5177;&#x5411;&#x672C;&#x673A;&#x7684;-44444-&#x7AEF;&#x53E3;&#x53D1;&#x9001;&#x5185;&#x5BB9;">&#x6B65;&#x9AA4;5: &#x4F7F;&#x7528; telnet &#x5DE5;&#x5177;&#x5411;&#x672C;&#x673A;&#x7684; 44444 &#x7AEF;&#x53E3;&#x53D1;&#x9001;&#x5185;&#x5BB9;</h3>
<pre class="language-"><code>telnet localhost 44444
</code></pre><p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1541494847.png-atguiguText" alt="">
<img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1541494881.png-atguiguText" alt=""></p>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; &#x5C1A;&#x7845;&#x8C37;&#x5927;&#x6570;&#x636E; 2019 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification"><br>&#x8BE5;&#x6587;&#x4EF6;&#x6700;&#x540E;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2018-12-16 13:26:44
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../di-3-zhang-qi-ye-kai-fa-an-li.html" class="navigation navigation-prev " aria-label="Previous page: 第 3 章 企业开发案例">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="32-shi-shi-du-qu-ben-di-wen-jian-dao-hdfs-an-li.html" class="navigation navigation-next " aria-label="Next page: 3.2 实时读取本地文件到HDFS案例">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"3.1 官方案例:监控端口数据","level":"1.3.1","depth":2,"next":{"title":"3.2 实时读取本地文件到HDFS案例","level":"1.3.2","depth":2,"path":"di-3-zhang-qi-ye-kai-fa-an-li/32-shi-shi-du-qu-ben-di-wen-jian-dao-hdfs-an-li.md","ref":"di-3-zhang-qi-ye-kai-fa-an-li/32-shi-shi-du-qu-ben-di-wen-jian-dao-hdfs-an-li.md","articles":[]},"previous":{"title":"第 3 章 企业开发案例","level":"1.3","depth":1,"path":"di-3-zhang-qi-ye-kai-fa-an-li.md","ref":"di-3-zhang-qi-ye-kai-fa-an-li.md","articles":[{"title":"3.1 官方案例:监控端口数据","level":"1.3.1","depth":2,"path":"di-3-zhang-qi-ye-kai-fa-an-li/31-guan-fang-an-4f8b3a-jian-kong-duan-kou-shu-ju.md","ref":"di-3-zhang-qi-ye-kai-fa-an-li/31-guan-fang-an-4f8b3a-jian-kong-duan-kou-shu-ju.md","articles":[]},{"title":"3.2 实时读取本地文件到HDFS案例","level":"1.3.2","depth":2,"path":"di-3-zhang-qi-ye-kai-fa-an-li/32-shi-shi-du-qu-ben-di-wen-jian-dao-hdfs-an-li.md","ref":"di-3-zhang-qi-ye-kai-fa-an-li/32-shi-shi-du-qu-ben-di-wen-jian-dao-hdfs-an-li.md","articles":[]},{"title":"3.3 实时读取目录文件到 HDFS","level":"1.3.3","depth":2,"path":"di-3-zhang-qi-ye-kai-fa-an-li/33-shi-shi-du-qu-mu-lu-wen-jian-dao-hdfs.md","ref":"di-3-zhang-qi-ye-kai-fa-an-li/33-shi-shi-du-qu-mu-lu-wen-jian-dao-hdfs.md","articles":[]},{"title":"3.4 单数据源多出口案例(选择器)","level":"1.3.4","depth":2,"path":"di-3-zhang-qi-ye-kai-fa-an-li/34-dan-shu-ju-yuan-duo-chu-kou-an-li.md","ref":"di-3-zhang-qi-ye-kai-fa-an-li/34-dan-shu-ju-yuan-duo-chu-kou-an-li.md","articles":[]},{"title":"3.5 单数据源多出口案例(Sink组)","level":"1.3.5","depth":2,"path":"di-3-zhang-qi-ye-kai-fa-an-li/35-dan-shu-ju-yuan-duo-chu-kou-an-4f8b28-sink-7ec429.md","ref":"di-3-zhang-qi-ye-kai-fa-an-li/35-dan-shu-ju-yuan-duo-chu-kou-an-4f8b28-sink-7ec429.md","articles":[]},{"title":"3.6 多数据源汇总案例","level":"1.3.6","depth":2,"path":"di-3-zhang-qi-ye-kai-fa-an-li/36-duo-shu-ju-yuan-hui-zong-an-li.md","ref":"di-3-zhang-qi-ye-kai-fa-an-li/36-duo-shu-ju-yuan-hui-zong-an-li.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["splitter","expandable-chapters-small","page-toc-button","-highlight","prism","prism-themes","tbfed-pagefooter","sitemap","change_girls","livereload"],"styles":{"website":"styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy 尚硅谷大数据 2019","modify_label":"<br>该文件最后修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prism-themes/themes/prism-base16-ateliersulphurpool.light.css"]},"disqus":{"shortName":"zhenchao125"},"livereload":{},"splitter":{},"change_girls":{"time":30,"urls":["http://o7cqr8cfk.bkt.clouddn.com/18-3-4/62171757.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/83394736.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/15906185.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/15906185.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/3394270.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/65028582.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/20359261.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/37472401.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/3355397.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/11075549.jpg-atguiguImg"]},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"sitemap":{"hostname":"https://www.gitbook.com/@zhenchao125"},"page-toc-button":{"maxTocDepth":3,"minTocSize":2},"prism-themes":{},"expandable-chapters-small":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":" 李振超","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"大数据 Fulume 课堂笔记","language":"zh-hans","links":{"sidebar":{"联系我们":"http://www.atguigu.com/"}},"gitbook":"*","description":"课堂笔记,学生提前预习"},"file":{"path":"di-3-zhang-qi-ye-kai-fa-an-li/31-guan-fang-an-4f8b3a-jian-kong-duan-kou-shu-ju.md","mtime":"2018-12-16T05:26:44.003Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-01-25T01:39:38.954Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-page-toc-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-change_girls/girls.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

